<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-18
 * Time: 10:05
 */

namespace app\api\validate\project;


use app\api\validate\BaseValidate;

class CheckHatch extends BaseValidate
{
    protected $rule = [
        'title' => 'require|max:50',
        'username' => 'require|max:20',
        'budget' => 'require|max:20',
        'industry' => 'require|max:50',
        'cycle' => 'require|max:20',
        'introduce' => 'require',
        'phone' => 'require|mobile',
        'status' => 'require|in:1,2'
    ];

    protected $message = [
        'title' => '请输入项目标题且长度不大于50',
        'username' => '请输入项目发起人且长度不大于20',
        'budget' => '请输入项目预算且长度不大于20',
        'industry' => '请输入行业且长度不大于20',
        'cycle' => '请输入项目周期且长度不大于20',
        'introduce' => '请输入项目介绍',
        'phone' => '请输入正确的手机号',
        'status' => '请输入正确的状态',
    ];
}